class WelcomeController < ApplicationController
  def index
    redirect_to :controller => 'events', :action => 'index' if logged_in?
  end
  
  def install
    return redirect_to(:action => 'index') unless User.no_managers_exist?
    @user = User.new
    if request.post?
      @user = User.new(params[:user])
      @user.manager = true
      @user.signup_complete = true
      redirect_to :action => 'index' if @user.save
    end
  end
  
end
